Pixeldev\SquareWooSync\REST\SquareController B

Total Complexity 87
Dependencies 10
Dependents 2
Total lines 577
Lines of code 376
Logical lines of code 225
Comment lines 93
Methods 18
Properties 2

Methods 18

Method Rating Maintainability Complexity Lines of code
handle_catalog_version_updated()
B
38 16 65
compare_skus()
A
43 15 48
handle_inventory_count_updated()
A
43 12 45
receive_square_update()
S
52 7 24
get_square_inventory()
S
56 5 18
save_inventory_to_db()
S
51 4 28
processProductVariations()
S
57 4 17
update_square_inventory_function()
S
54 3 20
register_routes()
S
55 3 19
import_to_woocommerce()
S
59 3 15
get_saved_inventory()
S
59 3 13
get_token_and_validate()
S
63 3 11
clear_inventory_table()
S
58 2 16
fetchOptionValue()
S
72 2 4
fetchOptionName()
S
72 2 4
get_woocommerce_products_square()
S
61 1 13
get_woocommerce_products()
S
63 1 12
acknowledge_receipt()
S
77 1 4